import win32com.client as client
import os

# functions for Shortcut #####################################
shell = client.Dispatch("WScript.Shell")

def GetShortCut(shortcut):
    return shell.CreateShortCut(shortcut).Targetpath

def createShortCut(filename, lnkname, argu):
    # file name should be abspath, or there will be some strange errors
    shortcut = shell.CreateShortCut(lnkname)
    shortcut.TargetPath = filename
    shortcut.Arguments = argu
    shortcut.save()

def CreateShortCut(filename, lnkname, argu):
    createShortCut(os.path.abspath(filename), lnkname, argu)
# functions for Shortcut end #################################

CreateShortCut(__file__, os.path.join(os.getenv('APPDATA'), 'Microsoft', 'Windows', 'Start Menu', 'Programs', 'Startup', 'shortc.lnk'), 'abc')

get = GetShortCut(os.path.join(os.getenv('APPDATA'), 'Microsoft', 'Windows', 'Start Menu', 'Programs', 'Startup', 'shortc.lnk'))
print(get)

if get == __file__:
    print('yes')
elif get != __file__:
    print('no')
print(__file__)